home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / sendmail / sendmail.cf / RCS / mailers.m4,v < prev    next >
Encoding:
Text File  |  1987-05-25  |  10.9 KB  |  532 lines

  1. head     1.8;
  2. access   ;
  3. symbols  ;
  4. locks    ; strict;
  5. comment  @@;
  6.  
  7.  
  8. 1.8
  9. date     87.05.26.09.33.50;  author dudek;  state Exp;
  10. branches ;
  11. next     1.7;
  12.  
  13. 1.7
  14. date     87.04.15.21.40.10;  author dudek;  state Exp;
  15. branches ;
  16. next     1.6;
  17.  
  18. 1.6
  19. date     87.04.15.21.22.33;  author dudek;  state Exp;
  20. branches ;
  21. next     1.5;
  22.  
  23. 1.5
  24. date     87.04.14.15.22.15;  author dudek;  state Exp;
  25. branches ;
  26. next     1.4;
  27.  
  28. 1.4
  29. date     87.03.09.10.06.26;  author dudek;  state Exp;
  30. branches ;
  31. next     1.3;
  32.  
  33. 1.3
  34. date     87.02.24.09.36.34;  author dudek;  state Exp;
  35. branches ;
  36. next     1.2;
  37.  
  38. 1.2
  39. date     87.02.05.17.41.04;  author dudek;  state Exp;
  40. branches ;
  41. next     1.1;
  42.  
  43. 1.1
  44. date     86.10.29.08.17.50;  author dudek;  state Exp;
  45. branches ;
  46. next     ;
  47.  
  48.  
  49. desc
  50. @@
  51.  
  52.  
  53. 1.8
  54. log
  55. @Changed BITNET mailer to only rewrite sending addresses - was screwing
  56. up recipient addresses with '%'s.  a0.24 release. -g
  57. @
  58. text
  59. @
  60. ############################################################
  61. ############################################################
  62. #####
  63. #####        Local and Program Mailer specification
  64. #####
  65. ############################################################
  66. ############################################################
  67.  
  68. Mlocal,    S=11, R=12, F=rlsFDmn, A=mail -d $u,
  69. ifdef(`DEBUG',
  70. `    P=/toe/staff/dudek/bin/dmail',
  71. `    P=/bin/mail')
  72. Mprog, S=11, R=12, F=lsF, A=sh -c $u,
  73. ifdef(`DEBUG',
  74. `    P=/toe/staff/dudek/bin/dmail',
  75. `    P=/bin/sh')
  76. ifdef(`TTYMAILER',
  77. `Mtty,    P=/usr/local/bin/send, F=rlsn, S=11, R=12, A=send $u, M=5000'
  78. )
  79.  
  80. S10
  81.  
  82. S11
  83. R$+            $:$>10$1
  84. R@@            MAILER-DAEMON        errors to mailer-daemon???
  85.  
  86. S12
  87. R$+            $:$>10$1
  88.  
  89. ############################################################
  90. ############################################################
  91. #####
  92. #####        LOCAL(!!) smtp (tcp/ip) mailer spec
  93. #####
  94. ############################################################
  95. ############################################################
  96.  
  97. Mether-mailer, S=14, R=15, F=RmsFDuX, E=\r\n,
  98. ifdef(`DEBUG',
  99. `    P=/toe/staff/dudek/bin/dmail, A=dmail $u',
  100. `    P=[IPC], A=IPC $h')
  101.  
  102. S13
  103. # convert to external now, so we can be sure there is an '@@' for
  104. # crotchety SMTP's (like Wollongong)
  105. R$+            $:$>8$1
  106. ifdef(`SENDDOMAIN',
  107. `# Make sure our domain is present in the address for domain-less hosts
  108. R$*<@@$->        $:$1<@@$2.$D>',`')
  109.  
  110. S14
  111. R$+            $:$>13$1            externalize
  112.  
  113. R$*<@@$+>        $@@$1<@@$2>            already ok
  114. R$+            $:$1<@@$J>            tack on our name
  115. ifdef(`SENDDOMAIN',
  116. `R$+<@@$->        $@@$1<@@$2.$D>            tack on our domain',
  117. `# sending within our own domain, so ok not to append our domain to hostname
  118. R$+<@@$-.$D>        $@@$1<@@$2>            strip our domain name')
  119.  
  120. S15
  121. R$+            $:$>13$1            externalize
  122.  
  123. ############################################################
  124. ############################################################
  125. #####
  126. #####        DECNET Mailer specification
  127. #####
  128. ############################################################
  129. ############################################################
  130.  
  131. Mdecnet-mailer,    F=mnsFDR, S=16, R=16, A=decnetmail $f $x $h $u,
  132. ifdef(`DEBUG',
  133. `    P=/toe/staff/dudek/bin/dmail',
  134. `    P=/usr/lib/dnet/local/decnetmail')
  135.  
  136. S16
  137.  
  138. ############################################################
  139. ############################################################
  140. #####
  141. #####        UUCP Mailer specification
  142. #####
  143. ############################################################
  144. ############################################################
  145.  
  146. Muucp-mailer, S=20, R=21, M=150000, F=RsFDhuUm, A=uux - -a$f -gA $h!rmail ($u),
  147. ifdef(`DEBUG',
  148. `    P=/toe/staff/dudek/bin/dmail',
  149. `    P=/usr/bin/uux')
  150. Mtcpuucp, S=20, R=21, F=RmsFDuX,
  151. ifdef(`DEBUG',
  152. `    P=/toe/staff/dudek/bin/dmail, A=dmail $u',
  153. `    P=[IPC], A=IPC $h')
  154.  
  155. S19
  156. R$+            $:$>8$1            convert to external form
  157.  
  158. # Change internal non-UUCP routing to '!' syntax
  159. # First, change internal '@@'s to '%'s
  160. R$+@@$+<$+>        $1%$2<$3>        change smith@@foo... to smith%foo
  161. # Change smith%foo%bar... to foo!smith%bar...
  162. R$+%$+%$+<$+>        $2!$1%$3<$4>        change smith%foo%bar... to !
  163. # Change foo!smith%bar... to bar!foo!smith...
  164. R$+%$+<$+>        $2!$1<$3>        change smith%foo... to !
  165.  
  166. R$+<@@$+>        $@@$2!$1            u@@host.ARPA => host.ARPA!u
  167.  
  168. S20
  169. R$+            $:$>19$1        convert to old style
  170. R$=U!$+            $2            strip local name
  171. R$+            $:$U!$1            stick on our host name
  172.  
  173. S21
  174. R$+            $:$>19$1        convert to old style
  175.  
  176. ############################################################
  177. ############################################################
  178. #####
  179. #####        Arpanet TCP Mailer specification
  180. #####
  181. ############################################################
  182. ############################################################
  183.  
  184. Marpa-mailer, S=23, R=24, E=\r\n, F=RmsDFMuXL,
  185. ifdef(`DEBUG',
  186. `    P=/toe/staff/dudek/bin/dmail, A=dmail $u',
  187. `    P=[IPC], A=IPC $h')
  188.  
  189. S22
  190. # externalize now, so sender looks right if we stick on our own address
  191. R$+            $:$>8$1
  192.  
  193. # output our mail clients as harvard.harvard.edu
  194. R$+<@@$=J>        $@@$1<@@$A>
  195.  
  196. ifdef(`ARPACLIENTS',
  197. `# output our ARPA clients as harvard.harvard.edu
  198. #  this means that users on these arpa clients MUST have mailboxes
  199. #  on this machine
  200. R$+<@@$=K>        $@@$1<@@$A>'
  201. )
  202.  
  203. # output our mail relay as harvard.harvard.edu
  204. ifdef(`MAILRELAY',
  205. `R$+<@@$R>        $@@$1<@@$A>'
  206. )
  207.  
  208. # output local hosts in user%host@@harvard.harvard.edu syntax
  209. R$+@@$+<@@$->        $@@$1@@$2@@$3<@@$A>        broken local hosts
  210. R$+<@@$->        $@@$1%$2<@@$A>        local hosts
  211.  
  212. # handle other external cases
  213. R$+<@@$+>        $@@$1<@@$2>
  214.  
  215. # kludge for numeric internet spec
  216. R$+<@@>            $@@$1
  217.  
  218. # otherwise, just stick on our hostname
  219. R$+            $@@$1<@@$A>
  220.  
  221. S23
  222. R$+            $:$>22$1        externalize
  223.  
  224. # forward from domains other than ARPA domains
  225. R$+@@$+<@@$+.$~A>        $@@$1@@$2@@$3.$4<@@$A>    broken user@@host.DOMAIN
  226. R$+<@@$+.$~A>        $@@$1%$2.$3<@@$A>        user@@host.DOMAIN
  227.  
  228. S24
  229. R$+            $:$>22$1        externalize
  230.  
  231. ############################################################
  232. ############################################################
  233. #####
  234. #####        BITNET Mailer specification
  235. #####
  236. ############################################################
  237. ############################################################
  238.  
  239.  
  240. Mbitnet-mailer, S=25, R=26, M=150000, F=RSsnFD, A=rscsmail $f $h $u,
  241. ifdef(`DEBUG',
  242. `    P=/toe/staff/dudek/bin/dmail',
  243. `    P=/usr/lib/rscs/rscs%mail')
  244. Mccnet-mailer, F=RSsnFD, S=26, R=27, M=100000, A=rscsmail $f$h$u cuvma mailer,
  245. ifdef(`DEBUG',
  246. `    P=/toe/staff/dudek/bin/dmail',
  247. `    P=/usr/lib/rscs/rscs%mail')
  248.  
  249. S25
  250. R$+            $:$>8$1                externalize
  251.  
  252. R$*<@@$*.BITNET>        $@@$1@@$2.BITNET
  253. R$+<@@$+>        $1%$2
  254. R$+            $:$1@@$B.BITNET            stick on our name
  255.  
  256. S26
  257. R$+            $:$>8$1                externalize
  258.  
  259. ############################################################
  260. ############################################################
  261. #####
  262. #####        PATHALIAS Mailer specification
  263. #####
  264. ############################################################
  265. ############################################################
  266.  
  267. Mpath-mailer, S=28, R=28, F=fhume,
  268. ifdef(`DEBUG',
  269. `    P=/toe/staff/dudek/bin/pathsend,
  270.     A=pathsend -m /toe/staff/dudek/bin/dsendmail $u',
  271. `    P=/usr/lib/uucp/pathsend, A=pathsend $u')
  272.  
  273. S28
  274.  
  275. @
  276.  
  277.  
  278. 1.7
  279. log
  280. @release a0.22 - kludged broken '%' routing to ARPA
  281. @
  282. text
  283. @d10 1
  284. a10 1
  285. Mlocal,    S=11, R=12, F=rlsFmn, A=mail -d $u,
  286. d39 1
  287. a39 1
  288. Mether-mailer, S=14, R=15, F=RmsFuX, E=\r\n,
  289. d73 1
  290. a73 1
  291. Mdecnet-mailer,    F=mnsFR, S=16, R=16, A=decnetmail $f $x $h $u,
  292. d88 1
  293. a88 1
  294. Muucp-mailer, S=20, R=21, M=150000, F=RsFhuUm, A=uux - -a$f -gA $h!rmail ($u),
  295. d92 1
  296. a92 1
  297. Mtcpuucp, S=20, R=21, F=RmsFuX,
  298. a153 4
  299. # forward from domains other than ARPA domains
  300. R$+@@$+<@@$+.$~A>        $@@$1@@$2@@$3.$4<@@$A>    broken user@@host.DOMAIN
  301. R$+<@@$+.$~A>        $@@$1%$2.$3<@@$A>        user@@host.DOMAIN
  302.  
  303. d157 3
  304. d166 4
  305. d182 1
  306. a182 1
  307. Mbitnet-mailer, S=26, R=27, M=150000, F=RSsnF, A=rscsmail $f $h $u,
  308. d186 1
  309. a186 1
  310. Mccnet-mailer, F=RSsnF, S=26, R=27, M=100000, A=rscsmail $f$h$u cuvma mailer,
  311. d192 1
  312. a192 1
  313. R$+            $:$>8$1
  314. d199 1
  315. a199 4
  316. R$+            $:$>25$1            externalize
  317.  
  318. S27
  319. R$+            $:$>25$1            externalize
  320. @
  321.  
  322.  
  323. 1.6
  324. log
  325. @a0.21 release - fixed bug in arpa-mailer rulesets -
  326.     From: @@harvard.harvard.edu:user@@harvard.harvard.edu
  327. @
  328. text
  329. @a64 3
  330. # strip destination host if there is another '@@'
  331. R$+@@$+<@@$h>        $1@@$2
  332.  
  333. d151 1
  334. d155 1
  335. @
  336.  
  337.  
  338. 1.5
  339. log
  340. @a0.20 release, fixed route-addr, removed '%' forwarding to relays
  341. @
  342. text
  343. @a155 3
  344. S23
  345. R$+            $:$>22$1        externalize
  346.  
  347. d159 3
  348. d164 3
  349. @
  350.  
  351.  
  352. 1.4
  353. log
  354. @a0.02 release, including domain patches resolver and "Received" patch for decnetmail
  355. @
  356. text
  357. @d53 1
  358. a53 1
  359. R$+            $:$>13$1
  360. d63 1
  361. a63 1
  362. R$+            $:$>13$1
  363. d65 3
  364. a155 6
  365. # handle other external cases
  366. R$+<@@$+>        $@@$1<@@$2>
  367.  
  368. # otherwise, just stick on our hostname
  369. R$+            $@@$1<@@$A>
  370.  
  371. d162 2
  372. a163 5
  373. # handle route-addrs
  374. # @@b:user@@c<@@a> <=> @@a,@@b:user@@c
  375. R@@$+:$+@@$+<$+>        $@@@@$4,@@$1:$2@@$3
  376. # user@@b<@@a> <=> @@a:user@@b
  377. R$+@@$+<$+>        $@@$3:$1@@$2
  378. a166 7
  379.  
  380. # handle route-addr (strip next host)
  381. #  @@b:user@@c<@@a> <=> @@b:user@@c
  382. R@@$+:$+<@@$+>        $@@@@$1:$2
  383. #  user@@b<@@a> <=> user@@b
  384. R$+@@$+<@@$+>        $@@$1@@$2
  385.  
  386. @
  387.  
  388.  
  389. 1.3
  390. log
  391. @Va0.02 release
  392. @
  393. text
  394. @d56 1
  395. d58 1
  396. a58 1
  397. `R$+            $@@$1<@@$J.$D>            tack on our domain',
  398. d60 1
  399. a60 1
  400. R$+            $@@$1<@@$J>            tack on our hostname')
  401. d73 1
  402. a73 1
  403. Mdecnet-mailer,    F=mnsF, S=16, R=16, A=decnetmail $f $x $h $u,
  404. @
  405.  
  406.  
  407. 1.2
  408. log
  409. @*** empty log message ***
  410. @
  411. text
  412. @d48 3
  413. a54 1
  414. # sending within our own domain, so ok not to append our domain to hostname
  415. d56 4
  416. a59 1
  417. R$+            $@@$1<@@$J>            tack on our hostname
  418. d111 1
  419. a111 1
  420. R$U!$+            $1            strip local name
  421. a132 3
  422.  
  423. # output us as harvard.harvard.edu
  424. R$+<@@$=w>        $@@$1<@@$A>
  425. @
  426.  
  427.  
  428. 1.1
  429. log
  430. @Initial revision
  431. @
  432. text
  433. @d10 8
  434. a17 2
  435. Mlocal,    P=/bin/mail, F=rlsFmn, S=10, R=20, A=mail -d $u
  436. Mprog,    P=/bin/sh,   F=lsF,   S=10, R=20, A=sh -c $u
  437. d19 1
  438. a19 1
  439. `Mtty,    P=/usr/local/bin/send, F=rlsn, S=10, R=20, A=send $u, M=5000'
  440. a22 1
  441. R@@            MAILER-DAEMON            errors to mailer-daemon
  442. d24 3
  443. a26 6
  444. S20
  445. ifdef(`STRIPLOCALHOST',
  446. `# strip our hostname from local recipients for /usr/ucb/mail
  447. R$+<@@$w>        $@@$1
  448. R$+<@@$j>        $@@$1'
  449. )
  450. d28 3
  451. d39 4
  452. a42 1
  453. Mether-mailer,    P=[IPC], F=RmsFuX, S=11, R=21, A=IPC $h, E=\r\n
  454. d44 9
  455. a52 1
  456. S11
  457. d56 2
  458. a57 1
  459. S21
  460. d62 1
  461. a62 1
  462. #####        PATHALIAS Mailer specification
  463. d67 4
  464. a70 2
  465. Mpath-mailer,    P=/usr/lib/uucp/pathsend, F=fhumve, S=12, R=22,
  466.     A=pathsend $u
  467. d72 1
  468. a72 1
  469. S12
  470. a73 2
  471. S22
  472.  
  473. d82 8
  474. d91 2
  475. a92 3
  476. Muucp-mailer,    P=/usr/bin/uux, F=RshuUm, S=13, R=23, M=150000,
  477.         A=uux - -a$f -gA $h!rmail ($u)
  478. Mtcpuucp, P=[IPC], F=RmsFuX, S=13, R=23, A=IPC $h
  479. d94 8
  480. a101 2
  481. S5
  482. R$+<@@$*.UUCP>        $@@$2!$1            u@@host.UUCP => host!u
  483. d104 2
  484. a105 2
  485. S13
  486. R$+            $:$>5$1            convert to old style
  487. d109 2
  488. a110 2
  489. S23
  490. R$+            $:$>5$1            convert to old style
  491. d120 4
  492. a123 1
  493. Marpa-mailer,    P=[IPC], F=RmsDFMuXL, S=14, R=24, A=IPC $h, E=\r\n
  494. d125 3
  495. a127 1
  496. S14
  497. d130 1
  498. a130 1
  499. R$+<@@$w>        $@@$1<@@$A>
  500. d148 1
  501. a148 1
  502. R$+<@@$=L>        $@@$1%$2<@@$A>        local hosts
  503. a149 9
  504. # pass route-addrs through, tacking on our hostname
  505. #  @@b:user@@c<@@a> <=> @@harvard.harvard.edu,@@a,@@b:user@@c
  506. R@@$+:$+<@@$+>        $@@@@$A,@@$3,@@$1:$2
  507. #  user@@b<@@a> <=> @@harvard.harvard.edu,@@a:user@@b
  508. R$+@@$+<@@$+>        $@@@@$A,@@$3:$1@@$2
  509.  
  510. # forward from domains other than ARPA domains
  511. R$+<@@$+.$=D>        $@@$1%$2.$3<@@$A>        user@@host.DOMAIN
  512.  
  513. d156 12
  514. d169 1
  515. d174 2
  516. a175 2
  517. #  :user@@b<@@a>     <=> user@@b
  518. R:$+<@@$+>        $@@$1
  519. d187 8
  520. a194 4
  521. Mbitnet-mailer, P=/usr/lib/rscs/rscs%mail, F=RSsnF, S=15, R=25, M=150000,
  522.     A=rscsmail $f $h $u
  523. Mccnet-mailer, P=/usr/lib/rscs/rscs%mail, F=RSsnF, S=15, R=25, M=100000,
  524.     A=rscsmail $f$h$u cuvma mailer
  525. d196 3
  526. a198 1
  527. S15
  528. d203 22
  529. a224 1
  530. S25
  531. @
  532.